<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<% 	
Boolean loggedIn = false;	
if(request.getSession().getAttribute("loggedIn") != null){
	loggedIn = (Boolean)request.getSession().getAttribute("loggedIn");
}
String onload = "";
String menuStyle = "";
if(!loggedIn) {onload = "doLoad('login','content');"; menuStyle = "display: none;";}
else onload = "doLoadAndHideAccountMenu('home', 'content');";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" href="stylesheet/style.css" type="text/css" /> 
		<script type="text/javascript" src="javascript/script.js"></script>
		<script type="text/javascript" src="javascript/countdown.js"></script>
		<title>Insert lol here</title>
	</head>
	<body onload="<%= onload %>">
		<div id="top"></div>
		<div id="menu" style="<%= menuStyle %>">
			<ul>
				<li><a href="javascript: doLoadAndHideAccountMenu('home','content');">Home</a></li>
				<li><a href="javascript: doLoadAndHideAccountMenu('searchbar&searchTarget=auctions','content');">Auctions</a></li>
				<li><a href="javascript: doLoadAccount();">Account</a></li>
				<li><a href="AccountServlet.do?action=logout">Logout</a></li>
			</ul>
		</div>
			<ul id="accountmenu" style="<%= menuStyle %>">
				<li><a href="javascript: doLoad('searchbar&searchTarget=my-auctions','content');">My auctions</a></li>
				<li><a href="javascript: doLoad('searchbar&searchTarget=my-bids','content');">My bids</a></li>
				<li><a href="javascript: doLoad('accountinfo','content');">Accountinfo</a></li>
				<li><a href="javascript: doLoad('new-auction','content');">New auction</a></li>
			</ul>
		<div id="content">
		</div>
	</body>
</html>